#ifndef CLIENT_SOCKET_H
#define CLIENT_SOCKET_H

#include <QTcpSocket>
#include <QString>
#include <QObject>

class ClientSocket : public QObject {
    Q_OBJECT

public:
    ClientSocket(QObject *parent = nullptr);
    bool connectToServer(const QString &host, quint16 port);
    bool sendCommand(const QString &cmd);
    QString readResponse();
    void closeConnection();

private:
    QTcpSocket socket;
};

#endif // CLIENT_SOCKET_H
